package cloud.lysky.java.on.design_pattern.template_method;

import java.util.function.Consumer;

/**
 * @author luoly
 * @describe
 * @date 2022-08-20 10:42
 **/
public class LambdaOnlineBanking {


    public void processCustomer(int id, Consumer<Customer> makeCustomerHappy){
        Customer customer = DataBase.getCustomerWithId(id);
        makeCustomerHappy.accept(customer);
    }
}